page-client-list {

    button.fab{
        .fab-close-icon {
            display: none;
        }
    }

    ion-fab.search {
        top: 0;
        left: 0;
        margin-left: 0;
        background: none;
        height: auto;

        button.fab {
            border-radius: 0;
            background-color: transparent;
            width: 100vw;
            height: 23vw;
            display: block;

            .button-inner {
                width: 100%;
                height: 100% !important;
                display: block;
                border-top: 1px solid transparent;
            }

            .search-key-wrapper {
                background: linear-gradient(to right, #63b24c, #018c6e);
                border: none;
                border-radius: 6vw;
                width: 88.89vw;
                height: 11.47vw;
                line-height: 11.47vw;
                margin: 5.56vw auto 0 auto;
                box-shadow: 0 2vw 6vw 0.2vw #ddd;
                display:flex;
                justify-content: space-between;
                align-items: center;

                i {
                    width: 4.5vw;
                    height: 4.5vw;
                    margin:auto 4.17vw auto 2vw;
                    background: url(../assets/images/client/client-list/icon_search.png) no-repeat;
                    background-size: cover;
                }
                input {
                    width: 72vw;
                    margin-left:4.17vw;
                    background: none;
                    height: 7vw;
                    border: none;
                    font-size: 3.89vw;
                    margin-right: 0;
                    color: #fff;
                    padding:0;
                    line-height:1;

                    &::placeholder {
                        color: rgba(255, 255, 255, 0.5);
                    }

                }
            }
        }
    }

    .scroll-content {
        padding-top: 23vw;
        padding-bottom: 13.89vw;
        width: 93vw;
        overflow: visible;
        -webkit-overflow-scrolling: unset !important;
    }

    .contact-wrapper {
        width:100vw;
        margin: 0 auto;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling:touch;

        .container {
            width:100vw;
            height: auto;
            position:relative;
            margin:0 auto;

            .client-item {
                width: 86vw;
                height: 12.96vw;
                left:50%;
                margin-left:-43vw;
                position:absolute;
                display: flex;
                justify-content: space-between;
                align-items: center;
                border-top: 1px solid #f6f6f6;
                font-size: 4.17vw;

                .client-title{
                    width:auto;
                    max-width: 40vw;
                    height: auto;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    overflow: hidden;
                }

                &.active-options-right{
                    ion-item{
                        background-color: #f4f4f4;
                    }
                }

                ion-item{
                    padding-left:0;
                    min-height:0;
                    height: 100%;

                    ion-label{
                        width:100%;
                        height:12vw;
                        margin:0;
                        display:flex;
                        align-items: center;
                    }
                }

                &.group {
                    width:100%;
                    height: 8.33vw;
                    left:0;
                    margin-left:0;
                    border-color:#f1f2f2;
                    background-color:#f1f2f2;
                    font-size: 4.44vw;
                    padding-left:0;
                    .client-title{
                        width:86%;
                        max-width:none;
                        margin:0 auto;
                    }
                    & + .client-item{
                        border:none;
                    }
                }

                .avatar{
                    width: 3.1vw;
                    height: auto;
                    margin-right:2.22vw;
                    display:block;
                }

                .vip{
                    font-size:3.33vw;
                    color:#999;
                    display:flex;
                    width: 27vw;
                    height: 5vw;
                    align-items: center;
                    background-size: contain;
                    background-repeat: no-repeat;
                    margin-right:3.98vw;

                    &.level1 {
                        background-image:url('../assets/images/client/client-list/icon_vip_gold.png');

                    }
                    &.level2 {
                        background-image:url('../assets/images/client/client-list/icon_vip_platinum.png');

                    }
                    &.level3 {
                        background-image:url('../assets/images/client/client-list/icon_vip_diamond.png');

                    }
                    &.level4 {
                        background-image:url('../assets/images/client/client-list/icon_vip_supreme.png');

                    }

                }
            }
        }
    }

    ion-fab.tool-contact {
        margin-left: -50vw;
        bottom: 0;

        .tool-bar-contact {
            width: 100vw;
            height:13vw;
            background-color: #fff;
            border-radius: 0;
            box-shadow: -1vw 0 16vw 1vw #eee;

            &.activated {
                background-color: transparent;
            }
            .button-inner {
                button {
                    background-color: #39b54a;
                    color: #ffffff;
                    border-radius: 0.8vw;
                    height: 9vw;
                    font-size: 3.5vw;
                    width: auto;
                    padding: 0 3vw;
                    margin: 0 1vw;

                    &.favorite {
                        background-color: #ebb809;
                        i {
                            background-image: url('../assets/images/client/client-list/Favorites.png');
                        }
                    }
                    &.add-client {
                        background-color: #018c61;
                        i {
                            background-image: url('../assets/images/client/client-list/add_contact.png');
                        }
                    }
                    &.import {
                        background-color: #39b549;
                        i {
                            background-image: url('../assets/images/client/client-list/Address_Book_Import.png');
                        }
                    }
                    i {
                        display: inline-block;
                        width: 4.44vw;
                        height: 4.44vw;
                        background-repeat: no-repeat;
                        background-size: cover;
                    }

                }
            }
        }
    }

    .contact-index {
        width:7vw;
        height: 100%;
        right: 0;
        top: 0;
        bottom: 0;
        z-index:998;

        .contact-list-index {
            width: 100%;
            height: 100%;
            border-radius: 0;
            line-height: 1;
            background-color:transparent;
            padding: 0;

            &.activated {
                background-color: transparent;
            }
            & > span {
                width: 100%;
                height: auto;
                flex-direction: column;
                align-items: flex-start;
                padding-left: 1vw;
                position: absolute;
                top:22.5vw;
            }

            .contact-list-item {
                width: 3.75vw;
                height: 3.75vw;
                line-height:3.75vw;
                display: block;
                border-radius: 50%;
                font-size: 3vw;
                color: #7D7D7D;

                &.current {
                    color: #fff;
                    background-color: #07A963;
                }
            }

        }
    }
}
